(function() {
  var __hasProp = {}.hasOwnProperty,
    __extends = function(child, parent) { for (var key in parent) { if (__hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; };

  this.AdminAuthorRoutes = (function(_super) {

    __extends(AdminAuthorRoutes, _super);

    function AdminAuthorRoutes() {
      return AdminAuthorRoutes.__super__.constructor.apply(this, arguments);
    }

    AdminAuthorRoutes.prototype.routes = {
      "Authors/Create": "Create",
      "Authors/Edit*path": "Edit",
      "Authors/Listing*path": "Listing",
      "Authors/Index": "Listing",
      "Authors": "Listing"
    };

    AdminAuthorRoutes.prototype.Create = function() {
      var model, view;
      model = new AdminAuthorCreateModel();
      view = new AdminAuthorCreateView({
        model: model
      });
      return view.render();
    };

    AdminAuthorRoutes.prototype.Edit = function() {
      var model, view;
      model = new AdminAuthorEditModel();
      model.set("AuthorId", Url.GetParameterByName("AuthorId"));
      return view = new AdminAuthorEditView({
        model: model
      });
    };

    AdminAuthorRoutes.prototype.Listing = function() {
      var model, view;
      model = new AdminAuthorListingModel();
      model.FillModelFromUrl();
      return view = new AdminAuthorListingView({
        model: model
      });
    };

    return AdminAuthorRoutes;

  })(Backbone.Router);

}).call(this);
